package com.lzy.system.business.dto;

import com.lzy.validator.StringMinMaxConstraint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.Pattern;

/**
 * <p>
 * 业务模型
 * </p>
 *
 * @author lcc
 * @since 2024-01-17
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "SysBus新增dto", description = "业务模型")
public class SysBusAddDTO {

    @ApiModelProperty("标题")
    @StringMinMaxConstraint(min = 1, max = 100, message = "标题长度为1-100")
    private String bus_title;

    @ApiModelProperty("业务模型名字")
    @StringMinMaxConstraint(min = 1, max = 100, message = "业务模型名字长度为1-100")
    @Pattern(regexp = "^[a-z_]+$", message = "只能输入小写英文字母和下划线")
    private String bus_name;

    @ApiModelProperty("模块描述")
    private String bus_desc;

    @ApiModelProperty("父包名称")
    @StringMinMaxConstraint(min = 1, max = 100, message = "父包名称长度为1-100")
    private String bus_parent_package;

    @ApiModelProperty("业务分组id")
    private String group_id;
}
